<template>
  <div v-if="props.show" class="fullscreen-loading">
    <img src="../assets/img/loading.gif" alt="">
  </div>
</template>

<script setup lang="ts">

//@ts-ignore
const props = defineProps({
  show: {
    type: Boolean
  }
})
</script>

<style scoped>
.fullscreen-loading {
  position: fixed;
  z-index: 999999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #28b9be;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #eee;
  border-top: 6px solid #409eff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
</style>
